package com.pureut.quality.controller;

import com.pureut.common.core.web.controller.BaseController;
import com.pureut.quality.service.QualityPatrolTemporaryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/***
 * 巡检物料信息检验控制层
 * Author:C
 * Date:2023/02/13 11:59
 * @DESC
 */
@RestController
@RequestMapping("/quality-patrol-temporary")
public class QualityPatrolTemporaryController extends BaseController {

    @Resource
    QualityPatrolTemporaryService qualityPatrolTemporaryService;

    /**
     * 查询物料号码
     */
    @GetMapping("/getMaterialNumber")
    public List<String> getMaterialNumber(String patrolInspectionSheetNo) {
        return qualityPatrolTemporaryService.getMaterialNumber(patrolInspectionSheetNo);
    }
}
